package concurrent.blockingQueue;

import java.util.concurrent.LinkedBlockingQueue;

/**
 * 无容量限制的线程安全队列，内部用链表实现，最大可以Integer.MAX_VALUE个元素
 */
public class LinkedBlockingQueueTest {

	public static void main(String[] args) throws InterruptedException {
		
		LinkedBlockingQueue<Integer> queue = new LinkedBlockingQueue<>();
		System.out.println(queue.take());
	}
}
